package com.turing.post.common.util;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商户操作员
 * 
 * @author zxp
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "MerchantOper")
public class MerchantOper implements Serializable {

	private BigInteger mrchOperId;// （UNI） 商户操作员ID Int Not null
	private String merchantNo;// (FK) 商户ID Varchar(15) Not Null
	private String mrchOperLogonName;// （UNI） 登录名 Varchar(40) Not Null
	private String mrchOperName;// 姓名 Varchar（60） Not Null
	private String mrchOperPasswd;// 密码 Varchar（40） Not Null
	private String sex;// 性别 char(1) Not Null 0 – 女
	private String status;// 状态 char(1) Not Null 0 – 停用
	private String linkTele;// 联系电话 varchar(40) Null
	private String email;// 邮箱 varchar(60) Null
	private Integer pwdErrCnt;// 密码错误次数 int Not Null 初始0
	private Date lastPwdErrTime;// 上次密码错误时间 date Null 精确到秒
	private Date lastPwdChangeTime;// 上次密码修改时间 date Not Null 用户创建时填入
	private String question1;
	private String answer1;
	private String question2;
	private String answer2;
	private String question3;
	private String answer3;
	private String remark;
	/**
	 * 性别 男
	 */
	public static final String SEX_MAN = "1";
	/**
	 * 性别 女
	 */
	public static final String SEX_WOMAN = "0";
	/**
	 * 状态 正常
	 */
	public static final String STATUS_NORMAL = "1";
	/**
	 * 停用
	 */
	public static final String STATUS_DISABLE = "0";

	public MerchantOper() {

	}

	@Id
	@Column(name = "MRCHOPERID")
	public BigInteger getMrchOperId() {
		return mrchOperId;
	}

	public void setMrchOperId(BigInteger mrchOperId) {
		this.mrchOperId = mrchOperId;
	}

	@Column(name = "MERCHANTNO")
	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

	@Column(name = "MRCHOPERLOGONNAME")
	public String getMrchOperLogonName() {
		return mrchOperLogonName;
	}

	public void setMrchOperLogonName(String mrchOperLogonName) {
		this.mrchOperLogonName = mrchOperLogonName;
	}

	@Column(name = "MRCHOPERNAME")
	public String getMrchOperName() {
		return mrchOperName;
	}

	public void setMrchOperName(String mrchOperName) {
		this.mrchOperName = mrchOperName;
	}

	@Column(name = "MRCHOPERPASSWD")
	public String getMrchOperPasswd() {
		return mrchOperPasswd;
	}

	public void setMrchOperPasswd(String mrchOperPasswd) {
		this.mrchOperPasswd = mrchOperPasswd;
	}

	@Column(name = "SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "LINKTELE")
	public String getLinkTele() {
		return linkTele;
	}

	public void setLinkTele(String linkTele) {
		this.linkTele = linkTele;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "PWDERRCNT")
	public Integer getPwdErrCnt() {
		return pwdErrCnt;
	}

	public void setPwdErrCnt(Integer pwdErrCnt) {
		this.pwdErrCnt = pwdErrCnt;
	}

	@Column(name = "LASTPWDERRTIME")
	public Date getLastPwdErrTime() {
		return lastPwdErrTime;
	}

	public void setLastPwdErrTime(Date lastPwdErrTime) {
		this.lastPwdErrTime = lastPwdErrTime;
	}

	@Column(name = "LASTPWDCHANGETIME")
	public Date getLastPwdChangeTime() {
		return lastPwdChangeTime;
	}

	public void setLastPwdChangeTime(Date lastPwdChangeTime) {
		this.lastPwdChangeTime = lastPwdChangeTime;
	}

	@Column(name = "QUESTION1")
	public String getQuestion1() {
		return question1;
	}

	public void setQuestion1(String question1) {
		this.question1 = question1;
	}

	@Column(name = "ANSWER1")
	public String getAnswer1() {
		return answer1;
	}

	public void setAnswer1(String answer1) {
		this.answer1 = answer1;
	}

	@Column(name = "QUESTION2")
	public String getQuestion2() {
		return question2;
	}

	public void setQuestion2(String question2) {
		this.question2 = question2;
	}

	@Column(name = "ANSWER2")
	public String getAnswer2() {
		return answer2;
	}

	public void setAnswer2(String answer2) {
		this.answer2 = answer2;
	}

	@Column(name = "QUESTION3")
	public String getQuestion3() {
		return question3;
	}

	public void setQuestion3(String question3) {
		this.question3 = question3;
	}

	@Column(name = "ANSWER3")
	public String getAnswer3() {
		return answer3;
	}

	public void setAnswer3(String answer3) {
		this.answer3 = answer3;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}